package com.jiazhong.entity;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class User {
    private Integer id;
    private String password;
    private String sex;
    private Integer age;
    private Date bornDate;
    private String[] hobbys;
    private Set<String> phones;
    private List<String> names;
    private Map<String,String> countries;

    //自建类型
    private Address address;

    public User() {
    }

    public User(Integer id, String password, String sex, Integer age, Date bornDate, String[] hobbys, Set<String> phones, List<String> names, Map<String, String> countries, Address address) {
        this.id = id;
        this.password = password;
        this.sex = sex;
        this.age = age;
        this.bornDate = bornDate;
        this.hobbys = hobbys;
        this.phones = phones;
        this.names = names;
        this.countries = countries;
        this.address = address;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return sex
     */
    public String getSex() {
        return sex;
    }

    /**
     * 设置
     * @param sex
     */
    public void setSex(String sex) {
        this.sex = sex;
    }

    /**
     * 获取
     * @return age
     */
    public Integer getAge() {
        return age;
    }

    /**
     * 设置
     * @param age
     */
    public void setAge(Integer age) {
        this.age = age;
    }

    /**
     * 获取
     * @return bornDate
     */
    public Date getBornDate() {
        return bornDate;
    }

    /**
     * 设置
     * @param bornDate
     */
    public void setBornDate(Date bornDate) {
        this.bornDate = bornDate;
    }

    /**
     * 获取
     * @return hobbys
     */
    public String[] getHobbys() {
        return hobbys;
    }

    /**
     * 设置
     * @param hobbys
     */
    public void setHobbys(String[] hobbys) {
        this.hobbys = hobbys;
    }

    /**
     * 获取
     * @return phones
     */
    public Set<String> getPhones() {
        return phones;
    }

    /**
     * 设置
     * @param phones
     */
    public void setPhones(Set<String> phones) {
        this.phones = phones;
    }

    /**
     * 获取
     * @return names
     */
    public List<String> getNames() {
        return names;
    }

    /**
     * 设置
     * @param names
     */
    public void setNames(List<String> names) {
        this.names = names;
    }

    /**
     * 获取
     * @return countries
     */
    public Map<String, String> getCountries() {
        return countries;
    }

    /**
     * 设置
     * @param countries
     */
    public void setCountries(Map<String, String> countries) {
        this.countries = countries;
    }

    /**
     * 获取
     * @return address
     */
    public Address getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(Address address) {
        this.address = address;
    }

    public String toString() {
        return "User{id = " + id + ", password = " + password + ", sex = " + sex + ", age = " + age + ", bornDate = " + bornDate + ", hobbys = " + hobbys + ", phones = " + phones + ", names = " + names + ", countries = " + countries + ", address = " + address + "}";
    }
}
